<?php
//SERVER
//define('SERVER_HOST_NAME','wechat.020fhd.com');
//$_SERVER['HTTP_HOST'],当前请求的HOST:头部的内容
define('SERVER_HOST_NAME',$_SERVER['HTTP_HOST']);

// HTTP
define('HTTP_SERVER', 'http://'.SERVER_HOST_NAME.'/server/');

// HTTPS
define('HTTPS_SERVER', 'http://'.SERVER_HOST_NAME.'/server/');

// DIR
define('DIR_APPLICATION', '/data/wwwroot/default/server/server/');
define('DIR_SYSTEM', '/data/wwwroot/default/server/system/');
define('DIR_LANGUAGE', '/data/wwwroot/default/server/server/language/');
define('DIR_TEMPLATE', '/data/wwwroot/default/server/server/view/theme/');
define('DIR_CONFIG', '/data/wwwroot/default/server/system/config/');
define('DIR_IMAGE', '/data/wwwroot/default/server/image/');
define('DIR_CACHE', '/data/wwwroot/default/server/system/cache/');
define('DIR_DOWNLOAD', '/data/wwwroot/default/server/system/download/');
define('DIR_UPLOAD', '/data/wwwroot/default/server/system/upload/');
define('DIR_MODIFICATION', '/data/wwwroot/server/wechat/system/modification/');
define('DIR_LOGS', '/data/wwwroot/default/server/system/logs/');

// DB
define('DB_DRIVER', 'mpdo');
define('DB_HOSTNAME', '127.0.0.1');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', 'pachelbel');
define('DB_DATABASE', 'wechat');
define('DB_PORT', '3306');
define('DB_PREFIX', '');

//约定通信密钥,防止服务器伪装
define('COMMUNICATION_KEY','57d1d7a1ec31e70e4e0b539160b8913346369fd7');
